.class public Lcom/estrongs/android/ui/dialog/z;
.super Ljava/lang/Object;
.source "MacUseInstructionsDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/dialog/z$b;
    }
.end annotation


# instance fields
.field private a:Lcom/estrongs/android/ui/dialog/q;

.field private b:Landroid/content/Context;

.field private c:Landroid/view/View;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/TextView;

.field private k:Landroid/widget/TextView;

.field private l:Landroid/widget/TextView;

.field private m:Landroid/widget/TextView;

.field private n:[Ljava/lang/String;

.field private o:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/z;->b:Landroid/content/Context;

    .line 3
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/z;->o:Ljava/lang/String;

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/z;->d()V

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/z;->b()V

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/z;->c()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/z;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/z;->b:Landroid/content/Context;

    return-object p0
.end method

.method private a(Ljava/lang/String;)Landroid/text/SpannableString;
    .locals 5

    .line 8
    new-instance v0, Landroid/text/SpannableString;

    invoke-direct {v0, p1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 9
    new-instance v1, Landroid/text/style/UnderlineSpan;

    invoke-direct {v1}, Landroid/text/style/UnderlineSpan;-><init>()V

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x21

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v4, v2, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 10
    new-instance v1, Lcom/estrongs/android/ui/dialog/z$b;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/estrongs/android/ui/dialog/z$b;-><init>(Lcom/estrongs/android/ui/dialog/z;Lcom/estrongs/android/ui/dialog/z$a;)V

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p1

    invoke-virtual {v0, v1, v4, p1, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    return-object v0
.end method

.method private b(Ljava/lang/String;)Landroid/text/SpannableString;
    .locals 5

    .line 5
    new-instance v0, Landroid/text/SpannableString;

    invoke-direct {v0, p1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 6
    new-instance v1, Landroid/text/style/StyleSpan;

    const/4 v2, 0x1

    invoke-direct {v1, v2}, Landroid/text/style/StyleSpan;-><init>(I)V

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x21

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v4, v2, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 7
    new-instance v1, Landroid/text/style/TypefaceSpan;

    const-string v2, "Roboto Medium"

    invoke-direct {v1, v2}, Landroid/text/style/TypefaceSpan;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result p1

    invoke-virtual {v0, v1, v4, p1, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    return-object v0
.end method

.method private b()V
    .locals 3

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->b:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    .line 2
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v1, Lcom/estrongs/android/ui/dialog/z$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/z$a;-><init>(Lcom/estrongs/android/ui/dialog/z;)V

    const v2, 0x7f11029e

    .line 3
    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f11063c

    .line 4
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->a:Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method

.method private c()V
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->b:Landroid/content/Context;

    const v1, 0x7f11063b

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, "#"

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->b:Landroid/content/Context;

    const v1, 0x7f1103ed

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    array-length v1, v1

    const/16 v2, 0xb

    if-ge v1, v2, :cond_0

    return-void

    .line 4
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->g:Landroid/widget/TextView;

    const-string v3, ""

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->g:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/4 v5, 0x0

    aget-object v4, v4, v5

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->g:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/4 v5, 0x1

    aget-object v4, v4, v5

    invoke-direct {p0, v4}, Lcom/estrongs/android/ui/dialog/z;->b(Ljava/lang/String;)Landroid/text/SpannableString;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->g:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/4 v5, 0x2

    aget-object v4, v4, v5

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->g:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/4 v5, 0x3

    aget-object v4, v4, v5

    invoke-direct {p0, v4}, Lcom/estrongs/android/ui/dialog/z;->b(Ljava/lang/String;)Landroid/text/SpannableString;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    .line 9
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->g:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/4 v5, 0x4

    aget-object v4, v4, v5

    invoke-direct {p0, v4}, Lcom/estrongs/android/ui/dialog/z;->b(Ljava/lang/String;)Landroid/text/SpannableString;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    .line 10
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->h:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/4 v5, 0x5

    aget-object v4, v4, v5

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 11
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->j:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/4 v5, 0x6

    aget-object v4, v4, v5

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 12
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->k:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/4 v5, 0x7

    aget-object v4, v4, v5

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 13
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->l:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/16 v5, 0x8

    aget-object v4, v4, v5

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 14
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->m:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/16 v5, 0x9

    aget-object v4, v4, v5

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->i:Landroid/widget/TextView;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 16
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->i:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    const/16 v4, 0xa

    aget-object v3, v3, v4

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    .line 17
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->i:Landroid/widget/TextView;

    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/dialog/z;->a(Ljava/lang/String;)Landroid/text/SpannableString;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->n:[Ljava/lang/String;

    array-length v1, v0

    const/16 v3, 0xc

    if-lt v1, v3, :cond_1

    .line 19
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->i:Landroid/widget/TextView;

    aget-object v0, v0, v2

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->append(Ljava/lang/CharSequence;)V

    .line 20
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->i:Landroid/widget/TextView;

    invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->d:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->g:Landroid/widget/TextView;

    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/ui/dialog/z;->a(Landroid/widget/TextView;Landroid/widget/TextView;)V

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->e:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->h:Landroid/widget/TextView;

    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/ui/dialog/z;->a(Landroid/widget/TextView;Landroid/widget/TextView;)V

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->f:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/z;->i:Landroid/widget/TextView;

    invoke-virtual {p0, v0, v1}, Lcom/estrongs/android/ui/dialog/z;->a(Landroid/widget/TextView;Landroid/widget/TextView;)V

    return-void
.end method

.method private d()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->b:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c0260

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b69

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->d:Landroid/widget/TextView;

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b6a

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->e:Landroid/widget/TextView;

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b6b

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->f:Landroid/widget/TextView;

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b5b

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->g:Landroid/widget/TextView;

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b5c

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->h:Landroid/widget/TextView;

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b5d

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->i:Landroid/widget/TextView;

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b62

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->j:Landroid/widget/TextView;

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b63

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->k:Landroid/widget/TextView;

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b64

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->l:Landroid/widget/TextView;

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->c:Landroid/view/View;

    const v1, 0x7f090b65

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->m:Landroid/widget/TextView;

    return-void
.end method

.method private e()V
    .locals 3

    .line 1
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v1, "from"

    .line 2
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/z;->o:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v1

    .line 3
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 4
    :goto_0
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    const-string v2, "SMB2_machelp_dialog_show"

    invoke-virtual {v1, v2, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-nez v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/z;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/z;->e()V

    :cond_0
    return-void
.end method

.method public a(Landroid/widget/TextView;Landroid/widget/TextView;)V
    .locals 5

    .line 5
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p1}, Landroid/widget/TextView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V

    .line 6
    invoke-virtual {p2}, Landroid/widget/TextView;->getLineHeight()I

    move-result p2

    int-to-double v1, p2

    const-wide/high16 v3, 0x3fe0000000000000L    # 0.5

    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v1, v1, v3

    double-to-int p2, v1

    const/4 v1, 0x0

    invoke-virtual {v0, v1, p2, v1, v1}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 7
    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method
